import Vue from 'vue'
import Router from 'vue-router'
import home from '../components/home/index.vue'
import leaveMsg from '../components/leaveMsg/index.vue'
import article from '../components/article/index.vue'
import articleDetail from '../components/article/articleDetail.vue'
import addArticle from '../components/article/addArticle.vue'
import login from '../components/login/login.vue'
import vuex from '../components/test/vuex/index.vue'
import space from '../components/space/index.vue'
import map from '../components/map/index1.vue'
import index from '../components/map/index.vue'
import wayLine from '../components/map/wayLine.vue'
import location from '../components/map/location.vue'
import panorama from '../components/map/panorama.vue'
import cloudTravel from '../components/map/cloudTravel.vue'
import introduce from '../components/map/introduce.vue'
import mapPoint from '../components/map/mapPoint.vue'

Vue.use(Router)

export default new Router({
    routes: [
        {
          path: '/',
          name: 'home',
          component: home
        }, {
          path: '/leaveMsg',
          name: 'leaveMsg',
          component: leaveMsg
        }, {
          path: '/article',
          name: 'article',
          component: article
        }, {
          path: '/articleDetail',
          name: 'articleDetail',
          component: articleDetail
        }, {
          path: '/addArticle',
          name: 'addArticle',
          component: addArticle,
          meta: {
            requireAuth: true
          }
        }, {
          path: '/login',
          name: 'login',
          component: login
        }, {
          path: '/test',
          name: 'test',
          component: vuex
        }, {
          path: '/space',
          name: 'space',
          component: space
        }, {
          path: '/map',
          name: 'map',
          component: map
        }, {
          path: '/index',
          name: 'index',
          component: index
        }, {
          path: '/wayLine',
          name: 'wayLine',
          component: wayLine
        }, {
          path: '/location',
          name: 'location',
          component: location
        }, {
          path: '/panorama',
          name: 'panorama',
          component: panorama
        }, {
          path: '/cloudTravel',
          name: 'cloudTravel',
          component: cloudTravel
        }, {
          path: '/introduce',
          name: 'introduce',
          component: introduce
        }, {
          path: '/mapPoint',
          name: 'mapPoint',
          component: mapPoint
        }]
})

